package com.wanmait.recycle.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wanmait.recycle.mapper.PraiseAnswerMapper;
import com.wanmait.recycle.pojo.PraiseAnswer;
import com.wanmait.recycle.service.PraiseAnswerService;
import com.wanmait.recycle.util.Pager;

@Service
@Transactional
public class PraiseAnswerServiceImpl implements PraiseAnswerService {

	@Resource
	private PraiseAnswerMapper praiseAnswerMapper; 
	
	@Override
	public void insert(PraiseAnswer object) {
		// TODO Auto-generated method stub

	}

	@Override
	public void update(PraiseAnswer object) {
		// TODO Auto-generated method stub

	}

	@Override
	public void delete(Integer id) {
		// TODO Auto-generated method stub

	}

	@Override
	public void delete(String ids) {
		// TODO Auto-generated method stub

	}

	@Override
	public PraiseAnswer findById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<PraiseAnswer> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getDataCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<PraiseAnswer> findAll(Pager pager) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<PraiseAnswer> findAll(PraiseAnswer object) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getDataCount(PraiseAnswer object) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<PraiseAnswer> findAll(Pager pager, PraiseAnswer object) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void insertBatch(List<PraiseAnswer> praiseAnswerList) {
		for (PraiseAnswer praiseAnswer : praiseAnswerList) {
			System.out.println(praiseAnswer.getAnswer().getId());
		}
		praiseAnswerMapper.insertBatch(praiseAnswerList);
	}

	@Override
	public void deleteBatch(List<PraiseAnswer> praiseAnswerList) {
		// TODO Auto-generated method stub
		praiseAnswerMapper.deleteBatch(praiseAnswerList);
	}

}
